package org.akomantoso.core.util;

import java.util.Map;

import org.akomantoso.core.io.util.Instantiator;

public final class MapUtil {
	
	private MapUtil(){}

	@SuppressWarnings("unchecked")
	public static final <E,T extends E> void copy(
			Map<String,Instantiator<T>> in, 
			Map<String,Instantiator<E>> out) {
		
		for (String key : in.keySet()) {
			out.put(key, (Instantiator<E>) in.get(key));
		}
	}
	
}